home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / plotting / gnuplot3.lzh / gnuplot / docs / toc_entry.sty < prev   
Text File  |  1991-05-30  |  2KB  |  66 lines

  1. %
  2. % TOC_ENTRY.STY of 13 Dec 90
  3. % written by Stefan Timphus
  4. %
  5. % Will produce the right space for sectionnumbers in the tableofcontents
  6. % Necessary for entries where the number for each kind of section
  7. % is greater 10 (e.g. "12.14.18 Sectionname")
  8. % When using the original definition the first letter of the sectionname
  9. % overwrites the last number of the sectionnumber
  10. %
  11. % call adjustments with command \adjustSTYLENAME
  12. %
  13.  
  14. \typeout{`toc_entry.sty' 1.0 of 13 Dec 90}
  15.  
  16. %
  17. % HERE ARE THE ORIGINAL DEFINITIONS
  18. %
  19.  
  20. % article.sty
  21. %
  22. %\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
  23. %\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
  24. %\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
  25. %\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
  26.  
  27. % report.sty and book.sty
  28. %
  29. %\def\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
  30. %\def\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
  31. %\def\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
  32. %\def\l@paragraph{\@dottedtocline{4}{10em}{5em}}
  33. %\def\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
  34.  
  35. %
  36. % MODIFICATIONS
  37. %
  38.  
  39. \newlength{\twonum}
  40.         \settowidth{\twonum}{99.99.}
  41. \newlength{\threenum}
  42.         \settowidth{\threenum}{99.99.99.}
  43. \newlength{\fournum}
  44.         \settowidth{\fournum}{99.99.99.99.}
  45. \newlength{\fivenum}
  46.         \settowidth{\fivenum}{99.99.99.99.99.}
  47. \newlength{\sixnum}
  48.         \settowidth{\sixnum}{99.99.99.99.99.99.}
  49.  
  50. \newcommand{\adjustarticle}
  51. {\def\l@subsection{\@dottedtocline{2}{1.5em}{\twonum}}
  52. \def\l@subsubsection{\@dottedtocline{3}{4.0em}{\threenum}}
  53. \def\l@paragraph{\@dottedtocline{4}{7.8em}{\fournum}}
  54. \def\l@subparagraph{\@dottedtocline{5}{10.4em}{\fivenum}}}
  55.  
  56. \newcommand{\adjustreport}
  57. {\def\l@section{\@dottedtocline{1}{1.5em}{\twonum}}
  58. \def\l@subsection{\@dottedtocline{2}{4.0em}{\threenum}}
  59. \def\l@subsubsection{\@dottedtocline{3}{7.8em}{\fournum}}
  60. \def\l@paragraph{\@dottedtocline{4}{10.4em}{\fivenum}}
  61. \def\l@subparagraph{\@dottedtocline{5}{12.6em}{\sixnum}}}
  62.  
  63. \newcommand{\adjustbook}{\adjustreport}
  64.  
  65. % end of TOC_ENTRY.STY
  66.